<?php

class TemplateCss extends TemplateParser
{

  protected function render()
  {
    global $config;

    $output = '';

    extract($this->params);

    $url = $name;
    if (! sy_url_is_absolute($url)) {
      $url = $config['theme_url'] . '/css/' . $name . '.css';
    }

    $output = "<link rel=\"stylesheet\" type=\"text/css\" href=\"$url\" />";

    return $this->parseVars($output);
  }

}
